<script type="text/javascript" src="animal.js"></script>
<script type="text/javascript" src="cat.js"></script>
<script>
    var a = new cat();
    document.write(a.wear());
    document.write(a.eat());
    // document.write(animal.eat());
</script>
